package com.example.homework.db.apis

import com.example.homework.db.models.Location
import com.example.homework.db.responses.LocationResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface LocationsApi {
    @GET("location/")
    suspend fun getAll(@Query("page") page: Int): LocationResponse

    @GET("location/{id}")
    suspend fun getOne(@Path("id") id: Int): Location
}